package com.xingkeduo.pojo.table;

import com.google.common.collect.Lists;
import com.xingkeduo.util.pojo.base.BaseTable;
import org.apache.ibatis.type.Alias;

import java.util.List;

/**
 * 文件概述
 *
 * @author wangxilong <wangxilong@xingkeduo.com>
 * @version id:v0.1 18-12-29 下午7:07
 * @package BeautyOS
 * @copyright Copyright (c) XKD 2019
 */
@Alias("Country")
public class CountryTable extends BaseTable<CountryTable> {

    private Long pid;
    private String name;
    private Integer type;
    private List<CountryTable> children = Lists.newArrayList();

    public String getName() {
        return name;
    }

    public CountryTable setName(String name) {
        this.name = name;
        return this;
    }

    public Long getPid() {
        return pid;
    }

    public CountryTable setPid(Long pid) {
        this.pid = pid;
        return this;
    }

    public Integer getType() {
        return type;
    }

    public CountryTable setType(Integer type) {
        this.type = type;
        return this;
    }

    public List<CountryTable> getChildren() {
        return children;
    }

    public CountryTable setChildren(List<CountryTable> children) {
        this.children = children;
        return this;
    }
}
